﻿using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace BaMusaSoft.RPS.DataModel
{
    /// <summary>
    /// EF's DbContext. This class is used by the internal infrastructure, thus not inteded to be used directly, 
    /// use UnitOfWork class instead, Which is a wrapper around this class.
    /// </summary>
    public class RpsEntities : DbContext
    {
        public RpsEntities()
            : base("name=RpsEntities")
        {
           
        }

        public DbSet<ClaimDetail> ClaimDetails { get; set; }
        public DbSet<ClaimNumber> ClaimNumbers { get; set; }
        public DbSet<Claim> Claims { get; set; }
        public DbSet<ContractActivity> ContractActivities { get; set; }
        public DbSet<Contract> Contracts { get; set; }
        public DbSet<Customer> Customers { get; set; }
        public DbSet<Outbox> Outboxes { get; set; }
        public DbSet<Payment> Payments { get; set; }
        public DbSet<PaymentType> PaymentTypes { get; set; }
        public DbSet<Property> Properties { get; set; }
        public DbSet<ScheduleDetail> ScheduleDetails { get; set; }
        public DbSet<SchedulePayment> SchedulePayments { get; set; }
        public DbSet<Schedule> Schedules { get; set; }
        public DbSet<Signer> Signers { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }
        
    }
}